#! /usr/bin/env python
#coding=utf-8
a = input();
b = input();
c = input();
if sorted(a + b) == sorted(c):
    print("YES");
else:
    print("NO");